package com.zijie.shop.order.api.service;

import com.zijie.core.util.JsonResult;
import com.zijie.goods.model.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "shop-gateway",contextId = "good-api")
public interface GoodFeignService {
    @GetMapping("/good-api/api/v1/good/findById/{id}")
    public ResponseEntity<JsonResult<Goods>> findById(@PathVariable Integer id);
}